Integrand size = 23, antiderivative size = 137 \[ \int \frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{x^4} \, dx=-\frac {b c \sqrt {d+e x^2}}{6 x^2}-\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}+\frac {b c \left (2 c^2 d-3 e\right ) \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{6 \sqrt {d}}-\frac {b \left (c^2 d-e\right )^{3/2} \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{3 d} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 137, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {270, 5096, 12, 457, 100, 162, 65, 214} \[ \int \frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{x^4} \, dx=-\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}-\frac {b \left (c^2 d-e\right )^{3/2} \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{3 d}+\frac {b c \left (2 c^2 d-3 e\right ) \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{6 \sqrt {d}}-\frac {b c \sqrt {d+e x^2}}{6 x^2} \]
[In]
[Out]
Rule 12
Rule 65
Rule 100
Rule 162
Rule 214
Rule 270
Rule 457
Rule 5096
Rubi steps \begin{align*} \text {integral}& = -\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}-(b c) \int \frac {\left (d+e x^2\right )^{3/2}}{3 x^3 \left (-d-c^2 d x^2\right )} \, dx \\ & = -\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}-\frac {1}{3} (b c) \int \frac {\left (d+e x^2\right )^{3/2}}{x^3 \left (-d-c^2 d x^2\right )} \, dx \\ & = -\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}-\frac {1}{6} (b c) \text {Subst}\left (\int \frac {(d+e x)^{3/2}}{x^2 \left (-d-c^2 d x\right )} \, dx,x,x^2\right ) \\ & = -\frac {b c \sqrt {d+e x^2}}{6 x^2}-\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}-\frac {(b c) \text {Subst}\left (\int \frac {-\frac {1}{2} d^2 \left (2 c^2 d-3 e\right )-\frac {1}{2} d \left (c^2 d-2 e\right ) e x}{x \left (-d-c^2 d x\right ) \sqrt {d+e x}} \, dx,x,x^2\right )}{6 d} \\ & = -\frac {b c \sqrt {d+e x^2}}{6 x^2}-\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}-\frac {1}{12} \left (b c \left (2 c^2 d-3 e\right )\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {d+e x}} \, dx,x,x^2\right )-\frac {1}{6} \left (b c \left (c^2 d-e\right )^2\right ) \text {Subst}\left (\int \frac {1}{\left (-d-c^2 d x\right ) \sqrt {d+e x}} \, dx,x,x^2\right ) \\ & = -\frac {b c \sqrt {d+e x^2}}{6 x^2}-\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}-\frac {\left (b c \left (2 c^2 d-3 e\right )\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{6 e}-\frac {\left (b c \left (c^2 d-e\right )^2\right ) \text {Subst}\left (\int \frac {1}{-d+\frac {c^2 d^2}{e}-\frac {c^2 d x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{3 e} \\ & = -\frac {b c \sqrt {d+e x^2}}{6 x^2}-\frac {\left (d+e x^2\right )^{3/2} (a+b \arctan (c x))}{3 d x^3}+\frac {b c \left (2 c^2 d-3 e\right ) \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{6 \sqrt {d}}-\frac {b \left (c^2 d-e\right )^{3/2} \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{3 d} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.49 (sec) , antiderivative size = 288, normalized size of antiderivative = 2.10 \[ \int \frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{x^4} \, dx=-\frac {\sqrt {d+e x^2} \left (b c d x+2 a \left (d+e x^2\right )\right )+2 b \left (d+e x^2\right )^{3/2} \arctan (c x)+b c \sqrt {d} \left (2 c^2 d-3 e\right ) x^3 \log (x)-b c \sqrt {d} \left (2 c^2 d-3 e\right ) x^3 \log \left (d+\sqrt {d} \sqrt {d+e x^2}\right )+b \left (c^2 d-e\right )^{3/2} x^3 \log \left (\frac {12 c d \left (c d-i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \left (c^2 d-e\right )^{5/2} (i+c x)}\right )+b \left (c^2 d-e\right )^{3/2} x^3 \log \left (\frac {12 c d \left (c d+i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \left (c^2 d-e\right )^{5/2} (-i+c x)}\right )}{6 d x^3} \]
[In]
[Out]
\[\int \frac {\sqrt {e \,x^{2}+d}\, \left (a +b \arctan \left (c x \right )\right )}{x^{4}}d x\]
[In]
[Out]
none
Time = 0.39 (sec) , antiderivative size = 858, normalized size of antiderivative = 6.26 \[ \int \frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{x^4} \, dx=\left [-\frac {{\left (b c^{2} d - b e\right )} \sqrt {c^{2} d - e} x^{3} \log \left (\frac {c^{4} e^{2} x^{4} + 8 \, c^{4} d^{2} - 8 \, c^{2} d e + 2 \, {\left (4 \, c^{4} d e - 3 \, c^{2} e^{2}\right )} x^{2} + 4 \, {\left (c^{3} e x^{2} + 2 \, c^{3} d - c e\right )} \sqrt {c^{2} d - e} \sqrt {e x^{2} + d} + e^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + {\left (2 \, b c^{3} d - 3 \, b c e\right )} \sqrt {d} x^{3} \log \left (-\frac {e x^{2} - 2 \, \sqrt {e x^{2} + d} \sqrt {d} + 2 \, d}{x^{2}}\right ) + 2 \, {\left (b c d x + 2 \, a e x^{2} + 2 \, a d + 2 \, {\left (b e x^{2} + b d\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{12 \, d x^{3}}, -\frac {2 \, {\left (b c^{2} d - b e\right )} \sqrt {-c^{2} d + e} x^{3} \arctan \left (-\frac {{\left (c^{2} e x^{2} + 2 \, c^{2} d - e\right )} \sqrt {-c^{2} d + e} \sqrt {e x^{2} + d}}{2 \, {\left (c^{3} d^{2} - c d e + {\left (c^{3} d e - c e^{2}\right )} x^{2}\right )}}\right ) + {\left (2 \, b c^{3} d - 3 \, b c e\right )} \sqrt {d} x^{3} \log \left (-\frac {e x^{2} - 2 \, \sqrt {e x^{2} + d} \sqrt {d} + 2 \, d}{x^{2}}\right ) + 2 \, {\left (b c d x + 2 \, a e x^{2} + 2 \, a d + 2 \, {\left (b e x^{2} + b d\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{12 \, d x^{3}}, -\frac {2 \, {\left (2 \, b c^{3} d - 3 \, b c e\right )} \sqrt {-d} x^{3} \arctan \left (\frac {\sqrt {-d}}{\sqrt {e x^{2} + d}}\right ) + {\left (b c^{2} d - b e\right )} \sqrt {c^{2} d - e} x^{3} \log \left (\frac {c^{4} e^{2} x^{4} + 8 \, c^{4} d^{2} - 8 \, c^{2} d e + 2 \, {\left (4 \, c^{4} d e - 3 \, c^{2} e^{2}\right )} x^{2} + 4 \, {\left (c^{3} e x^{2} + 2 \, c^{3} d - c e\right )} \sqrt {c^{2} d - e} \sqrt {e x^{2} + d} + e^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + 2 \, {\left (b c d x + 2 \, a e x^{2} + 2 \, a d + 2 \, {\left (b e x^{2} + b d\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{12 \, d x^{3}}, -\frac {{\left (b c^{2} d - b e\right )} \sqrt {-c^{2} d + e} x^{3} \arctan \left (-\frac {{\left (c^{2} e x^{2} + 2 \, c^{2} d - e\right )} \sqrt {-c^{2} d + e} \sqrt {e x^{2} + d}}{2 \, {\left (c^{3} d^{2} - c d e + {\left (c^{3} d e - c e^{2}\right )} x^{2}\right )}}\right ) + {\left (2 \, b c^{3} d - 3 \, b c e\right )} \sqrt {-d} x^{3} \arctan \left (\frac {\sqrt {-d}}{\sqrt {e x^{2} + d}}\right ) + {\left (b c d x + 2 \, a e x^{2} + 2 \, a d + 2 \, {\left (b e x^{2} + b d\right )} \arctan \left (c x\right )\right )} \sqrt {e x^{2} + d}}{6 \, d x^{3}}\right ] \]
[In]
[Out]
\[ \int \frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{x^4} \, dx=\int \frac {\left (a + b \operatorname {atan}{\left (c x \right )}\right ) \sqrt {d + e x^{2}}}{x^{4}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{x^4} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{x^4} \, dx=\int { \frac {\sqrt {e x^{2} + d} {\left (b \arctan \left (c x\right ) + a\right )}}{x^{4}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{x^4} \, dx=\int \frac {\left (a+b\,\mathrm {atan}\left (c\,x\right )\right )\,\sqrt {e\,x^2+d}}{x^4} \,d x \]
[In]
[Out]